<nav class="navbar navbar-default" >
  <div class="container-fluid">
    <a name="top"></a>
     
      <!-- <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">Brand</a>
      </div> -->
      <a class="navbar-brand" href="#">
        <img src="../../../assets/img/logo.png" alt="logo" class="logo">
      </a>
  
      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">

          <li class="active-hover"><a href="#" [routerLink]="'/youji'">游记 <span class="sr-only">(current)</span></a></li>
          <li class="active-hover"><a href="#" [routerLink]="'/jiebanIndex'">结伴而行</a></li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">预留链接 <span class="caret"></span></a>
            <ul class="dropdown-menu">
              <li><a href="#" >Action</a></li>
              <li><a href="#" >Another action</a></li>
              <li><a href="#" >Something else here</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="#" >Separated link</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="#" >One more separated link</a></li>
            </ul>
          </li>

        </ul>
       <!-- 导航右边开始 -->
        <ul class="nav navbar-nav navbar-right">
          <li><a routerLink="/login" *ngIf="!userStatus">登录</a></li>

          <li><a routerLink="/regist" *ngIf="!userStatus">注册</a></li>

          <li><a  *ngIf="userStatus">欢迎{{user.nikeName}}</a></li>

          <li class="dropdown"  *ngIf="userStatus">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
              <!-- <img src="../../../assets/img/user.jpeg" alt="" class="userhead"> -->
              <img src="/tournote/image/{{user.userImgUrl}}" alt="" class="userhead">
              <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <!-- <li role="separator" class="divider"></li> -->
              <li><a  routerLink="/writeYouji">发起游记</a></li>
              <li><a  routerLink="/publishgowith">发起结伴</a></li>
              <li><a routerLink="./publish" >我的发布</a></li>
              <li><a href="#" routerLink="/set">设置</a></li>
              <li><a  (click)="quit()">退出</a></li>
            </ul>
          </li>

        </ul>
        <!-- 导航右边结束 -->
      </div>

  </div>
</nav>